#ifndef SF_IRENDER_H_
#define SF_IRENDER_H_
#pragma once
#include "SFConfig.h"
#include "SFMathUtil.h"

namespace SF
{
	class IRender
	{
	public:
		friend class SFRoot;
	public:
		virtual ~IRender(){};
		virtual bool BeginRender() = 0;
		virtual bool EndRender() = 0;
		virtual void RenderRect(const recti& rkRect = recti(0,0,100,100),uint32 uiColor = 0xFFFFFFFF) = 0;

	private:
		virtual bool Initialize(uint32 uiHandle,const size2di& rkSize = size2di(800,600),bool bFullScreen = false) = 0;
	};
}
#endif